package com.rhb.ca;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class AppContext {
	
	private static AppContext instance;
	
	private AbstractApplicationContext appContext;
	
	private AppContext() {
		this.appContext = new ClassPathXmlApplicationContext("/com/coco/ca/AppContext.xml");
	}
	
	public synchronized static AppContext getInstance() {
		if (instance == null) {
			instance = new AppContext();
		}
		return instance;
	}
	
	public AbstractApplicationContext getAppContext() {
		return appContext;
	}	
}
